
#include "hal_exti.h"

/*************************
#include<Windows.h>
#include<stdio.h>

void EXTI0_IRQHandler(void);
uint8_t sim_num = 0;
DWORD WINAPI EXTI0_SIM(LPVOID p)
{
	uint8_t pin = 0;
	uint8_t last_pin = 0;
	while(1){
		pin = ((GetAsyncKeyState(sim_num-1+0x30) & 0x8000) ? 0 : 1);
		if((last_pin == 1)&&(pin == 0)){
			EXTI0_IRQHandler();
		}
		last_pin = pin;
	}
    return 0;
}
*******************************/

void EXTI_Init(EXTI_InitTypeDef* EXTI_InitStruct)
{
//	sim_num = EXTI_InitStruct->EXTI_Line;
//	CreateThread(NULL, 0, EXTI0_SIM, 0, 0, NULL);
}
